        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>ManifoldPoint class / box2d Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="box2d" data-type="ManifoldPoint">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../box2d.html">box2d</a> &rsaquo; <a href="../box2d/ManifoldPoint.html">ManifoldPoint</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>ManifoldPoint</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<pre class="source">
class ManifoldPoint {
 /**
  * Usage depends on manifold type. For circles, is the local center of
  * circleB. For faceA, is the local center of CircleB or the clip point of
  * polygonB. For faceB, is the clip point of polygonA.
  */
 final vec2 localPoint;

 /** The non-penetration impulse. */
 num normalImpulse;

 /** The friction impulse. */
 num tangentImpulse;

 /** Unique identifier for a contact point between two shapes. */
 final ContactID id;

 /**
  * Constructs a new ManifoldPoint.
  */
 ManifoldPoint() :
   localPoint = new vec2.zero(),
   tangentImpulse = 0,
   normalImpulse = 0,
   id = new ContactID() { }

 /**
  * Constructs a new ManifoldPoint that is a copy of the given point.
  */
 ManifoldPoint.copy(ManifoldPoint other) :
   localPoint = new vec2.copy(other.localPoint),
   normalImpulse = other.normalImpulse,
   tangentImpulse = other.tangentImpulse,
   id = new ContactID.copy(other.id) { }

 /**
  * Sets this ManifoldPoint to be equal to the given point.
  */
 void setFrom(ManifoldPoint other) {
   localPoint.copyFrom(other.localPoint);
   normalImpulse = other.normalImpulse;
   tangentImpulse = other.tangentImpulse;
   id.setFrom(other.id);
 }
}
</pre>
</div>
<div>
<h3>Constructors</h3>
<div class="method"><h4 id="ManifoldPoint">
<button class="show-code">Code</button>
new <strong>ManifoldPoint</strong>() <a class="anchor-link" href="#ManifoldPoint"
              title="Permalink to ManifoldPoint.ManifoldPoint">#</a></h4>
<div class="doc">
<p>Constructs a new ManifoldPoint.</p>
<pre class="source">
ManifoldPoint() :
 localPoint = new vec2.zero(),
 tangentImpulse = 0,
 normalImpulse = 0,
 id = new ContactID() { }
</pre>
</div>
</div>
<div class="method"><h4 id="ManifoldPoint.copy">
<button class="show-code">Code</button>
new <strong>ManifoldPoint.copy</strong>(<a href="../box2d/ManifoldPoint.html">ManifoldPoint</a> other) <a class="anchor-link" href="#ManifoldPoint.copy"
              title="Permalink to ManifoldPoint.ManifoldPoint.copy">#</a></h4>
<div class="doc">
<p>Constructs a new ManifoldPoint that is a copy of the given point.</p>
<pre class="source">
ManifoldPoint.copy(ManifoldPoint other) :
 localPoint = new vec2.copy(other.localPoint),
 normalImpulse = other.normalImpulse,
 tangentImpulse = other.tangentImpulse,
 id = new ContactID.copy(other.id) { }
</pre>
</div>
</div>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="id">
<button class="show-code">Code</button>
final <a href="../box2d/ContactID.html">ContactID</a>         <strong>id</strong> <a class="anchor-link"
            href="#id"
            title="Permalink to ManifoldPoint.id">#</a>
        </h4>
        <div class="doc">
<pre class="source">
id
</pre>
</div>
</div>
<div class="field"><h4 id="localPoint">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>localPoint</strong> <a class="anchor-link"
            href="#localPoint"
            title="Permalink to ManifoldPoint.localPoint">#</a>
        </h4>
        <div class="doc">
<pre class="source">
localPoint
</pre>
</div>
</div>
<div class="field"><h4 id="normalImpulse">
<button class="show-code">Code</button>
num         <strong>normalImpulse</strong> <a class="anchor-link"
            href="#normalImpulse"
            title="Permalink to ManifoldPoint.normalImpulse">#</a>
        </h4>
        <div class="doc">
<pre class="source">
normalImpulse
</pre>
</div>
</div>
<div class="field"><h4 id="tangentImpulse">
<button class="show-code">Code</button>
num         <strong>tangentImpulse</strong> <a class="anchor-link"
            href="#tangentImpulse"
            title="Permalink to ManifoldPoint.tangentImpulse">#</a>
        </h4>
        <div class="doc">
<pre class="source">
tangentImpulse
</pre>
</div>
</div>
</div>
<div>
<h3>Methods</h3>
<div class="method"><h4 id="setFrom">
<button class="show-code">Code</button>
void <strong>setFrom</strong>(<a href="../box2d/ManifoldPoint.html">ManifoldPoint</a> other) <a class="anchor-link" href="#setFrom"
              title="Permalink to ManifoldPoint.setFrom">#</a></h4>
<div class="doc">
<p>Sets this ManifoldPoint to be equal to the given point.</p>
<pre class="source">
void setFrom(ManifoldPoint other) {
 localPoint.copyFrom(other.localPoint);
 normalImpulse = other.normalImpulse;
 tangentImpulse = other.tangentImpulse;
 id.setFrom(other.id);
}
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
